package com.mes.service.lf;

import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.hy.EquipmentMapper;
import com.mes.entity.hy.Equipment;
import com.mes.entity.hy.PeopleManage;
import com.mes.entity.hy.Product;

/**
 * 设备的service层实现类
 * @author Administrator
 *
 */
@Service
@Transactional
public class DeviceServiceImpl implements DeviceService{
	
	@Resource
	EquipmentMapper equipmentMapper;

	@Override
	public List<Equipment> findAllDevice() {
		return equipmentMapper.findAllDevice();
	}

	@Override
	public Equipment findByDeviceId(Long id) {
		return equipmentMapper.findByDeviceId(id);
	}

	@Override
	public List<Product> findProductOfDev(Equipment equipment) {
		return equipmentMapper.findProductOfDev(equipment);
	}

	@Override
	public String findPlanNumByCondition(HashMap<String, Object> map) {
		return equipmentMapper.findPlanNumByCondition(map);
	}

	@Override
	public String findDevNameByDevVersion(String remark) {
		return equipmentMapper.findDevNameByDevVersion(remark);
	}

	@Override
	public int findNoGoodNum(HashMap<String, Object> map) {
		return equipmentMapper.findNoGoodNum(map);
	}

	@Override
	public void addPeopleManage(PeopleManage pm) {
		equipmentMapper.addPeopleManage(pm);
	}

	
}
